<include file="Public/head" />

<body class="no-skin">
    <include file="Public/header" />
    <div class="main-container" id="main-container">
        <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {}
        </script>
        <include file="Public/sidebar" />
        <div class="main-content">
            <div class="main-content-inner">
                <!-- #section:basics/content.breadcrumbs -->
                <include file="Public/breadcrumbs" />
                <!-- /section:basics/content.breadcrumbs -->
                <div class="page-content">
                    <include file="Public/set" />
                    <!-- /section:settings.box -->
                    <div class="row">
                        <div class="col-xs-12">
                            <!-- PAGE CONTENT BEGINS -->
                            <div class="row">
                                <form class="form-inline" id="form-search" action="{:U('index')}" method="get">
                                    <!-- <a class="btn btn-info" href="{:U('add')}" value="">新增</a> -->
                                    <label class="inline">&nbsp;&nbsp;用户搜索 </label>
                                    <select name="field" class="form-control">
                                        <option <if condition="I('field') eq user">selected</if> value="user">用户名</option>
                                        <option <if condition="I('field') eq phone">selected</if> value="phone">电话</option>
                                        <!--           <option <if condition="I('field') eq qq">selected</if> value="qq">QQ</option>
                                        <option <if condition="I('field') eq email">selected</if> value="email">邮箱</option> -->
                                    </select>
                                    <input type="text" name="keyword" value="{:I(keyword)}" class="form-control">
                                    <label class="inline">&nbsp;&nbsp;注册起始时间 </label>
                                    <div class="input-group">
                                        <input type="text" class="date-picker" name="starttime" id="starttime" data-date-format="yy-mm-dd" value="{:I(starttime)}" />
                                        <span class="input-group-addon"> 到</span>
                                    </div>
                                    <div class="input-group">
                                        <input type="text" class="date-picker" name="endtime" id="endtime" data-date-format="yy-mm-dd" value="{:I(endtime)}" />
                                        <span class="input-group-addon">
                                        <i class="fa fa-calendar bigger-110"></i>
                                    </span>
                                    </div>
                                    <label class="inline">&nbsp;&nbsp;排序：</label>
                                    <select name="order" class="form-control">
                                        <option <if condition="I('order') eq asc">selected</if> value="asc">注册时间升</option>
                                        <option <if condition="I('order') eq desc">selected</if> value="desc">注册时间降</option>
                                    </select>
                                    <button type="submit" class="btn btn-purple btn-sm">
                                        <span class="ace-icon fa fa-search icon-on-right bigger-110"></span> 搜索
                                    </button>
                                    <button id="download-users" class="btn btn-info btn-sm" data-url="{:U('export')}"> <i class="fa fa-cloud-download"></i> 导出会员</button>
                                </form>
                            </div>
                            <div class="space-4"></div>
                            <div class="row">
                                <form id="form" method="post" action="{:U('del')}">
                                    <table class="table table-striped table-bordered table-hover">
                                        <thead>
                                            <tr>
                                                <!--     <th class="center" width="5%">
                                                    <label class="pos-rel">
                                                        <input class="check-all ace" type="checkbox" value="">
                                                        <span class="lbl"></span>
                                                    </label>
                                                </th> -->
                                                <th class="center" width="5%">id</th>
                                                <th>用户名</th>
                                                <th>电话</th>
                                                <th>积分</th>
                                                <th>注册时间</th>
                                                <th>状态</th>
                                                <th class="center">操作</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <volist name="list" id="val">
                                                <tr>
                                                    <!--      <td class="center">
                                                        <label class="pos-rel">
                                                            <input class="uids ace" type="checkbox" name="uids[]" value="{$val['id']}">
                                                            <span class="lbl"></span>
                                                        </label>
                                                    </td> -->
                                                    <td class='center'>{$val['id']}</td>
                                                    <td>{$val['name']}</td>
                                                    <td>
                                                        {$val['phone']}
                                                    </td>
                                                    <td>{$val['score']}</td>
                                                    <td>{$val['createtime']}</td>
                                                    <td>
                                                        <eq name="val.status" value="0">
                                                            <span class="label label-danger">注销/删除</span>
                                                        </eq>
                                                        <eq name="val.status" value="1">
                                                            <span class="label label-success ">正常</span>
                                                        </eq>
                                                        <eq name="val.status" value="-1">
                                                            <span class="label">冻结</span>
                                                        </eq>
                                                    </td>
                                                    <td class="left">
                                                        <a class="blue" href="{:U('edit',array('id'=>$val['id']))}">
                                                    <i class="ace-icon fa fa-pencil bigger-100"></i> 编辑</a>
                                                        <a class="blue" href="{:U('scoretran',array('id'=>$val['id']))}">
                                                    <i class="ace-icon fa fa-pencil bigger-100"></i> 充减积分</a>
                                                        <a class="green" href="{:U('scorelog',array('id'=>$val['id']))}" class="green" data-target="#modal-table" data-toggle="modal">
                                                    <!-- <i class="ace-icon fa fa-clock-o bigger-100"></i> 积分异动</a> -->
                                                         <a class="red del" href="javascript:;" val="{:U('del',array('ids'=>$val['id']))}" title="删除">
                                                    <i class="ace-icon fa fa-trash-o bigger-100"></i> 删除</a>
                                                        <!-- <a href="{:U('scorelog',array('id'=>$val['id']))}" class="green" data-target="#modal-table" data-toggle="modal"> Table </a> -->
                                                    </td>
                                                </tr>
                                            </volist>
                                        </tbody>
                                    </table>
                                </form>
                                <!-- <div class="cf"> <input id="submit" class="btn btn-info" type="button" value="删除"> </div> -->
                                {$page}
                            </div>
                            <!-- PAGE CONTENT ENDS -->
                        </div>
                        <!-- /.col -->
                    </div>
                    <!-- /.row -->
                </div>
                <!-- /.page-content -->
            </div>
        </div>
        <!-- modal table -->
        <include file="Public/madal-table" />
        <!-- /.main-content -->
        <include file="Public/footer" />
    </div>
    <!-- /.main-container -->
    <include file="Public/footerjs" />
    <!-- inline scripts related to this page -->
    <script src="__PUBLIC__/admin/js/amall/user/index.js"></script>
</body>

</html>